package com.ziyun.pop.modules.order.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import org.springframework.stereotype.Service;
import java.util.Map;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import io.renren.common.utils.PageUtils;
import io.renren.common.utils.Query;

import com.ziyun.pop.modules.order.dao.ErpOrderPaymentDao;
import com.ziyun.pop.modules.order.entity.OrderPaymentEntity;
import com.ziyun.pop.modules.order.service.OrderPaymentService;


@Service("orderPaymentService")
public class OrderPaymentServiceImpl extends ServiceImpl<ErpOrderPaymentDao, OrderPaymentEntity> implements OrderPaymentService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        Page<OrderPaymentEntity> page = (Page<OrderPaymentEntity>) this.page(
                new Query<OrderPaymentEntity>(params).getPage(),
                new QueryWrapper<OrderPaymentEntity>()
        );
        return new PageUtils(page);
    }

}
